package cn.tedu.waimai.mapper;

import cn.tedu.waimai.entity.Admin;
import cn.tedu.waimai.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AdminMapper {
    //注册
    @Insert("insert into admin values(null,#{admin_name},#{admin_password})")
    void Admin_insert(Admin admin);

    //登陆
    @Select("select admin_password fromadmin where admin_name=#{admin_name}")
    Admin selectByAdmin_name(String admin_name);




}
